package com.link.base.tencent.corpwx.accounttag.dao.mybatis.mapper;

import com.link.base.tencent.corpwx.accounttag.model.AccountTagGroup;
import com.link.base.tencent.corpwx.accounttag.model.AccountTagItem;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 客户标签
 *
 * @author 欧阳振强
 * @date 2020-01-02 15:02:09.0
 */
public interface AccountTagItemMapper extends BasicMapper<AccountTagItem> {
    /**
     * 通过tag id判断标签是否存在
     *
     * @author 欧阳振强
     * @date 2020/01/04
     * @param accountTagItem 标签对象
     */
    AccountTagItem getTagItemById(AccountTagItem accountTagItem) throws Exception;

    /**
     * 通过tag group crm id获取标签列表
     *
     * @author 欧阳振强
     * @date 2020/01/04
     * @param accountTagGroup 标签组对象
     */
    List<AccountTagItem> getTagItemListByGroupId(AccountTagGroup accountTagGroup) throws Exception;

    /**
     * 通过tag group crm id删除标签列表
     *
     * @author 欧阳振强
     * @date 2020/01/04
     * @param accountTagGroup 标签组对象
     */
    void delTagItemListByGroupId(AccountTagGroup accountTagGroup) throws Exception;
}